package com.zch.service;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.zch.dao.ZaitiTypeMapper;
import com.zch.dao.model.ZaitiType;
import com.zch.dao.model.ZaitiTypeExample;
import com.zch.daoEx.ZaitiTypeMapperEx;
import com.zch.daoEx.model.ZaitiTypeEx;

@Service
public class ZaitiTypeService {
	@Autowired
	private ZaitiTypeMapper zaitiTypeMapper;
    @Autowired
    private ZaitiTypeMapperEx zaitiTypeMapperEx;	

	public int countByExample(ZaitiTypeExample example) {
		return this.zaitiTypeMapper.countByExample(example);
	}

	public ZaitiType selectByPrimaryKey(String id) {
		return this.zaitiTypeMapper.selectByPrimaryKey(id);
	}

	public List<ZaitiType> selectByExample(ZaitiTypeExample example) {
		return this.zaitiTypeMapper.selectByExample(example);
	}

	public int deleteByPrimaryKey(String id) {
		return this.zaitiTypeMapper.deleteByPrimaryKey(id);
	}

	public int updateByPrimaryKeySelective(ZaitiType record) {
		return this.zaitiTypeMapper.updateByPrimaryKeySelective(record);
	}

	public int updateByPrimaryKey(ZaitiType record) {
		return this.zaitiTypeMapper.updateByPrimaryKey(record);
	}

	public int deleteByExample(ZaitiTypeExample example) {
		return this.zaitiTypeMapper.deleteByExample(example);
	}

	public int updateByExampleSelective(ZaitiType record, ZaitiTypeExample example) {
		return this.zaitiTypeMapper.updateByExampleSelective(record, example);
	}

	public int updateByExample(ZaitiType record, ZaitiTypeExample example) {
		return this.zaitiTypeMapper.updateByExample(record, example);
	}

	public int insert(ZaitiType record) {
		return this.zaitiTypeMapper.insert(record);
	}

	public int insertSelective(ZaitiType record) {
		return this.zaitiTypeMapper.insertSelective(record);
	}

    public List<ZaitiTypeEx> selectList(Map<String, Object> map) {
        return this.zaitiTypeMapperEx.selectList(map);
    }

    public List<ZaitiTypeEx> selectAppList() {
        return this.zaitiTypeMapperEx.selectAppList();
    }

}
